package com.etc.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.etc.entity.City;
@Repository
public interface CityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(City record);

    int insertSelective(City record);
    //根据ID查询城市信息
    City selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(City record);

    int updateByPrimaryKey(City record);
    
    //根据省份ID查询该省份的所有城市
    List<City> selectBypId(@Param("pid") int pid);
    
    //根据城市的编号查询该城市的信息
    City selectByCityId(int cid);
}